QT += core gui sql websockets

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

# CONFIG   += static
# QTPLUGIN += qsqlmysql

# LIBS += -L"D:\Qt\6.2.4\msvc2019_32_static\plugins\sqldrivers" -lqsqlmysql
# LIBS += -L"C:\dbms\mysql-8.0.16-winx64\lib" -lmysqlclient
# LIBS += -lodbc32

SOURCES += \
    main.cpp \
    dbmanager.cpp \
    gamesession.cpp \
    mainwindow.cpp \
    updater.cpp \
    server.cpp\

HEADERS += \
    config.h \
    dbmanager.h \
    entities.h \
    gamesession.h \
    updater.h \
    server.h \
    mainwindow.h \

FORMS += \
    mainwindow.ui \
    updater.ui


# 软件图标
RC_ICONS =  icon/favicon.ico

# DEFINES += DEV_BUILD   # 开发环境
DEFINES  += RELEASE_BUILD  # 发布环境

RESOURCES += \
    assets.qrc

TRANSLATIONS += \
    language/en.ts

